import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { AppCustomPreloader } from './preloader.component';
import { CommonModule } from '@angular/common';
export const APP_ROUTES: Routes = [
    { path: '', redirectTo: 'login', pathMatch: 'full' },
    { path: 'login', loadChildren: './framework/login/login.module#LoginModule' },    
    { path: 'admin', loadChildren: './framework/framework.module#FrameworkModule' }    
]

/**
 * About Routing module
 *
 * Exposing all routes
 */
@NgModule({
    imports: [RouterModule.forRoot(APP_ROUTES, { useHash: true, preloadingStrategy: AppCustomPreloader }), CommonModule],
    exports: [RouterModule],
    providers: [AppCustomPreloader]
})
export class AppRoutesModule {

}